<!Doctype html>
<html xmlns:th="http://www.thymeleaf.org" lang="zh-CN">

<head>
    <meta charset="UTF-8">
    <script th:src="@{/jquery-1.11.3.min.js}"></script>
    <link th:href="@{/bootstrap-4.5.0-dist/css/bootstrap.css}" rel="stylesheet">
    <script th:src="@{/jquery/jqPaginator.js}"></script>
</head>

<body>
<div class="container">

    <h3 class="text-center">消息处理</h3><br>

    <table class="table">
        <tr><th>员工编号</th>
            <th>员工名字</th>
            <th>信息</th>
            <th>时间</th>
            <th>原因</th>
        </tr>

        <tr th:each="one:${infos}">
            <td th:text="${one.user_id}"></td>
            <td th:text="${one.name}"></td>
            <td th:text="${one.infoname}"></td>
            <td th:text="${one.infodate}"></td>
            <td th:text="${one.infocontant}"></td>
            <td><a class="btn btn-success"  th:href="@{/ac/onread/} + (${one.info_id})">已读</a></td>
        </tr>

        <tr>
            <td colspan="8">
                <div class="page">
                    <p>当前<span th:text="${infos.getNumber()} + 1"></span>页,总<span th:text="${infos.totalPages}"></span>页
                        共<span th:text="${infos.totalElements}"></span>条记录
                        <a th:href="@{/ac/goinfo}">首页</a>
                        <a th:href="@{/ac/goinfo(pageNum = ${infos.hasPrevious()} ? ${infos.getNumber() } : 1)}">上一页</a>
                        <a th:href="@{/ac/goinfo(pageNum = ${infos.hasNext()} ? ${infos.getNumber()} + 2 : ${infos.totalPages})}">下一页</a>
                        <a th:href="@{/ac/goinfo(pageNum = ${infos.totalPages})}">尾页</a></p>
                </div>

            </td>


        </tr>
    </table>
</div>
</body>
</html>